package com.yidu.ladder.base.domain;

import java.io.Serializable;

public class RipareaCustomer implements Serializable{

	/**
	 * 序列号
	 */
	private static final long serialVersionUID = -2321962801690406589L;
	/**
	 * 定区客户Id
	 */
	private String ripAreaCustomerId;
	/**
	 * 定区Id
	 */
	private String ripAreaId;
	/**
	 * 定区名
	 */
	private String ripAreaName;
	/**
	 * 客户Id
	 */
	private String customerId;
	/**
	 * 客户名
	 */
	private String customerName;
	
	public RipareaCustomer() {
		super();
	}

	public RipareaCustomer(String ripAreaCustomerId, String ripAreaId, String ripAreaName, String customerId,
			String customerName) {
		super();
		this.ripAreaCustomerId = ripAreaCustomerId;
		this.ripAreaId = ripAreaId;
		this.ripAreaName = ripAreaName;
		this.customerId = customerId;
		this.customerName = customerName;
	}

	public String getRipAreaCustomerId() {
		return ripAreaCustomerId;
	}

	public void setRipAreaCustomerId(String ripAreaCustomerId) {
		this.ripAreaCustomerId = ripAreaCustomerId;
	}

	public String getRipAreaId() {
		return ripAreaId;
	}

	public void setRipAreaId(String ripAreaId) {
		this.ripAreaId = ripAreaId;
	}

	public String getRipAreaName() {
		return ripAreaName;
	}

	public void setRipAreaName(String ripAreaName) {
		this.ripAreaName = ripAreaName;
	}

	public String getCustomerId() {
		return customerId;
	}

	public void setCustomerId(String customerId) {
		this.customerId = customerId;
	}

	public String getCustomerName() {
		return customerName;
	}

	public void setCustomerName(String customerName) {
		this.customerName = customerName;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((customerId == null) ? 0 : customerId.hashCode());
		result = prime * result + ((customerName == null) ? 0 : customerName.hashCode());
		result = prime * result + ((ripAreaCustomerId == null) ? 0 : ripAreaCustomerId.hashCode());
		result = prime * result + ((ripAreaId == null) ? 0 : ripAreaId.hashCode());
		result = prime * result + ((ripAreaName == null) ? 0 : ripAreaName.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		RipareaCustomer other = (RipareaCustomer) obj;
		if (customerId == null) {
			if (other.customerId != null)
				return false;
		} else if (!customerId.equals(other.customerId))
			return false;
		if (customerName == null) {
			if (other.customerName != null)
				return false;
		} else if (!customerName.equals(other.customerName))
			return false;
		if (ripAreaCustomerId == null) {
			if (other.ripAreaCustomerId != null)
				return false;
		} else if (!ripAreaCustomerId.equals(other.ripAreaCustomerId))
			return false;
		if (ripAreaId == null) {
			if (other.ripAreaId != null)
				return false;
		} else if (!ripAreaId.equals(other.ripAreaId))
			return false;
		if (ripAreaName == null) {
			if (other.ripAreaName != null)
				return false;
		} else if (!ripAreaName.equals(other.ripAreaName))
			return false;
		return true;
	}

	@Override
	public String toString() {
		return "RipareaCustomer [ripAreaCustomerId=" + ripAreaCustomerId + ", ripAreaId=" + ripAreaId + ", ripAreaName="
				+ ripAreaName + ", customerId=" + customerId + ", customerName=" + customerName + "]";
	}
	
	
	
}
